import Menu from './menu'
import SubMenu from './subMenu'
import MenuItem from './menuItem'
import { FC } from 'react'
import { MenuItemProps, MenuProps, SubMenuProps } from './types'

export type IMenuComponent = FC<MenuProps> & {
	Item: FC<MenuItemProps>
	SubMenu: FC<SubMenuProps>
}

const TransMenu = Menu as IMenuComponent

TransMenu.Item = MenuItem

TransMenu.SubMenu = SubMenu

export default TransMenu
